package com.duobaoyu.dby.supply.biz.client.resource.bean.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author liyang
 * @version 1.0.0
 * @ClassName ChannelSettingConfigVO
 * @Description 渠道设置配置
 * @createTime 13:12:00 2023/08/25
 */
@Data
public class ChannelSettingConfigVO implements Serializable {
    private static final long serialVersionUID = -7630315129869185443L;
    /**
     * 渠道编码
     */
    public String channelCode;
    /**
     * 渠道名称
     */
    private String channelName;
    /**
     * 渠道logo
     */
    private String channelLogo;
    /**
     * 置顶时间戳
     */
    @ApiModelProperty(value = "置顶时间戳")
    private Long topTime;
    /**
     * 配置类型
     */
    private List<ChannelSetting> channelSettings;

    @Data
    public static class ChannelSetting{
        /**
         * 主键ID
         */
        @ApiModelProperty(value = "主键ID")
        private Long id;
        /**
         * 配置类型 1->预估运费配置；2->售后配置；3->审核策略配置; 4->订单规则
         * //@see ChannelSettingTypeEnum
         */
        private Integer configType;
        /**
         * 配置类型描述
         */
        private String configTypeName;
        /**
         * 状态  false->停用; true->正常
         */
        @ApiModelProperty(value = "状态  false->停用; true->正常")
        private Boolean status;
        /**
         * 备注用途
         */
        @ApiModelProperty(value = "备注用途")
        private String remark;
        /**
         * 是否配置
         * true - 已配置
         * false - 未配置
         */
        @ApiModelProperty(value = "是否配置")
        private Boolean ifSetting;
    }
}
